using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Java.IO;
using System.Runtime.Serialization;

namespace Markdone.Droid
{
  
    class Alarm
    {
        public DateTime DateTime
        {
            get;
            set;
        }

        public bool IsRepeat
        {
            get;
            set;
        }

        public bool IsOver
        {
            get;
            set;
        }
    }
    
    [Serializable]
    class TaskItem
    {
        private Alarm alarm;

        public string Title
        {
            get;
            set;
        }
        
        public string Note
        {
            get;
            set;
        }

        public bool State
        {
            get;
            set;
        }
        
        public bool IsStar
        {
            set;
            get;
        }

        public bool IsRepeat
        {
            get { return alarm.IsRepeat; }
            set { alarm.IsRepeat = value; }
        }

        public bool Over
        {
            get { return alarm.IsOver; }
            set { alarm.IsOver = value; }
        }

        public DateTime DateTime
        {
            get { return alarm.DateTime; }
            set { alarm.DateTime = value; }
        }

        public TaskItem(string title, string note="", bool state=false, bool star=false)
        {
            this.Title = title;
            this.Note = note;
            this.State = state;
            this.IsStar = star;
            this.alarm = new Alarm();
        }

    }
 
}